package com.wicket.okrapp.web.contorller;

import com.wicket.okrapp.biz.service.IntelligentCommunicationService;
import com.wicket.okrapp.biz.service.dto.req.*;
import com.wicket.okrapp.biz.service.dto.res.*;
import com.wicket.okrapp.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/app/intelligentCommunication/")
public class IntelligentCommunicationController {

  @Autowired
  IntelligentCommunicationService intelligentCommunicationService;
/**
   * D3执行智能指令沟通服务(公共)
   */
    @PostMapping("implementIntelligentCommandCommunicationServicesCom")
    public OkrResult<ImplementIntelligentCommandCommunicationServicesComRespDto> implementIntelligentCommandCommunicationServicesCom(@RequestBody @Validated ImplementIntelligentCommandCommunicationServicesComReqDto reqDTO){
    return OkrResult.success(intelligentCommunicationService.implementIntelligentCommandCommunicationServicesCom(reqDTO));
    }
/**
   * D3执行想问答(公共)
   */
    @PostMapping("implementWantAskAnswerCom")
    public OkrResult<ImplementWantAskAnswerComRespDto> implementWantAskAnswerCom(@RequestBody @Validated ImplementWantAskAnswerComReqDto reqDTO){
    return OkrResult.success(intelligentCommunicationService.implementWantAskAnswerCom(reqDTO));
    }
/**
   * D3执行记录想法(公共)
   */
    @PostMapping("implementRecordIdeasCom")
    public OkrResult<ImplementRecordIdeasComRespDto> implementRecordIdeasCom(@RequestBody @Validated ImplementRecordIdeasComReqDto reqDTO){
    return OkrResult.success(intelligentCommunicationService.implementRecordIdeasCom(reqDTO));
    }
}
